export interface ResponseData {
  code: number
  message: string
  ok: boolean
}

export interface Trades {
  id?: number
  tmName: string
  logoUrl: string | null
}

export type Records = Trades[]
// interface 更适合用于描述对象的形状，而 type 更适合用于组合多种类型。
// export interface Records extends Array<Trades> {} // 使用 interface

export interface TrademarksResponse extends ResponseData {
  data: {
    records: Records
    total: number
    size: number
    current: number
    searchCount: boolean
    pages: number
  }
}
